Image Click
AutomatR.Windows.Activities.ImageClick
The "Image Click" activity in AutomatR is designed for capturing an image on the web UI to perform an action. This activity aids in automating scenarios where clicking on a specific region or image is required within a Windows application or web page.
Properties
Name | Description |
---|---|
Input | |
Region Selection | Specifies the name or path of the image file representing the region to be clicked. This image is used as a reference for identifying the target region. Provide a string value containing the image file name or path. |
Adjust The Resolution | Adjusts the resolution of the image based on the current screen scaling. Enabling this option ensures accurate region identification across different screen scaling settings. Boolean variables control this option. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. String variables containing the desired display name. |
Windows Scaling | Stores the scaling factor of the current screen. This property is managed internally and not exposed for configuration in the workflow. |
Rect Coordinates | Stores the coordinates of the captured image. This property is managed internally and not exposed for configuration in the workflow. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Image Click" activity. This delay can be useful for synchronization purposes. Provide integer variables containing the delay duration, for example, 5 seconds. |
How to use:
- Drag and drop the "Image Click" activity onto the workflow.
- Configure the properties by specifying the region selection, adjusting the resolution (if needed), and setting the delay.
- Execute the workflow to perform the image click action.
Example: Consider an example where the "Image Click" activity is used to click on a button with a specific icon on a web page:
Image Click:
Region Selection: "button_icon.png"
Adjust The Resolution: True
Delay: 2
In this example, the activity captures the specified region based on the provided image ("button_icon.png"), adjusts the resolution, waits for 2 seconds, and then simulates a mouse click on the identified region.